package com.by.bean;

import com.by.common.group.ISave;
import com.by.common.group.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("客户")
public class Customer {

    @ApiModelProperty("修改时ID不能为空！")
    @NotEmpty(message = "id不能为空！", groups = {IUpdate.class})
    String id;

    @ApiModelProperty(value = "客户名称",required = true)
    @NotEmpty(message = "客户名称不能为空！", groups = {ISave.class, IUpdate.class})
    String name;

    @ApiModelProperty(value = "手机号")
    String mobile;
}
